package com.derbysoft.dswitch.adapter.ihg.common.repository;

import com.derbysoft.dswitch.adapter.ihg.common.domain.ChannelAuthorization;
import com.derbysoft.dswitch.adapter.ihg.web.action.support.Paginater;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by: jason
 * Date: 2012-05-23
 */
public interface ChannelAuthorizationRepository {

    ChannelAuthorization loadByDerbyChannelCode(String derbyChannelCode);

    List<ChannelAuthorization> loadAll();

    ChannelAuthorization save(ChannelAuthorization channel);

    ChannelAuthorization load(Long id);

    void delete(ChannelAuthorization exist);

    Paginater paginater(Paginater paginater);
}
